// Learn cc.Class:
//  - https://docs.cocos.com/creator/manual/en/scripting/class.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

cc.Class({
    extends: cc.Component,

    properties: {
        btnFd: cc.Button,
        btnPc: cc.Button,
        btnDiandian: cc.Button,
        btnMore: cc.Button
    },

    onLoad () {
        this.btnFd.node.on('click', this.toFd, this);
        this.btnPc.node.on('click', this.toPerfectCube, this);
        this.btnDiandian.node.on('click', this.toDiandian, this);
        this.btnMore.node.on('click', this.toMore, this);
    },

    start () {

    },

    // update (dt) {},

    toFd() {
        cc.director.loadScene('game');
    },

    toPerfectCube() {
        cc.director.loadScene('prefectCube')
    },

    toDiandian() {
        cc.director.loadScene('diandian')
    },

    toMore() {
        
    },
});
